package at.fhooe.mc.master.clc.server.domain.jdo;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

import at.fhooe.mc.master.clc.server.domain.IEmbeddedEntity;

@PersistenceCapable(detachable = "true")
public class EmbeddedJDOListEntity implements IEmbeddedEntity
{
	
	@Persistent
	@Extension(vendorName="datanucleus", key="gae.unindexed", value="true") 
	private String stringField;
	@Persistent
	@Extension(vendorName="datanucleus", key="gae.unindexed", value="true") 
	private double doubleField;
	
	public EmbeddedJDOListEntity()
	{
	}

	public EmbeddedJDOListEntity(boolean generate)
	{
		if (generate)
		{
			this.stringField = "embedded_string_field";
			this.doubleField = 42.42;
		}
	}

	@Override
	public String getStringField()
	{
		return this.stringField;
	}

	@Override
	public double getDoubleField()
	{
		return this.doubleField;
	}

}
